<?php
class ModelUser extends Model {
	private static $instance; 
	private $nick;
	private $pass;
	private $host;

	public static function getInstance() {
		return self::$instance;
	}
	
	public static function newInstance(Array $d) {
		self::$instance = new self();
		self::$instance->hydrate($d);
	}
	
	public function hydrate(Array $d) {
		if(isset($d['nick']))
			$this->nick = $d['nick'];
		if(isset($d['pass']))
			$this->pass = $d['pass'];
		if(isset($d['nick']))
			$this->host = $d['host'];
	}

	public function getNick() {
		return $this->nick;
	}
	
	public function getPass() {
		return $this->pass;
	}
	
	public function getHost() {
		return $this->host;
	}
}